﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Linq.Mapping;

namespace QuanLyDaiLy.Model
{
    [Table(Name = "DonVi")]
    public class CDonVi
    {
        #region Propertie
        [Column(Name = "MaDonVi", IsPrimaryKey = true)]
        public int MaDonVi { get; set; }

        [Column(Name = "TenDonVi")]
        public string TenDonVi { get; set; }

        #endregion

        #region 

        public CDonVi() { }
        public CDonVi(int madonvi, string tendonvi)
        {
            this.MaDonVi = madonvi;
            this.TenDonVi = tendonvi;
        }
        #endregion
    }
}
